package com.yin.myproject.cglib;

import net.sf.cglib.proxy.Enhancer;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Eason
 * @create 2018-05-07 16:50
 **/
public class Client {
    public static void main(String[] args) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(HelloServiceImpl.class);
        enhancer.setCallback(new HelloMethodInteceptor());
        HelloServiceImpl helloService = (HelloServiceImpl) enhancer.create();
        helloService.sayHello();

        ConcurrentHashMap<String,String> hashMap = new ConcurrentHashMap<>();
        hashMap.get("21");
    }
}
